<%@ page import="ar.com.binarit.entities.UsuarioCreador" %>



<div class="fieldcontain ${hasErrors(bean: usuarioCreadorInstance, field: 'username', 'error')} ">
	<label for="username">
		<g:message code="usuarioCreador.username.label" default="Username" />
		
	</label>
	<g:textField name="username" maxlength="100" value="${usuarioCreadorInstance?.username}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: usuarioCreadorInstance, field: 'password', 'error')} ">
	<label for="password">
		<g:message code="usuarioCreador.password.label" default="Password" />
		
	</label>
	<g:textField name="password" value="${usuarioCreadorInstance?.password}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: usuarioCreadorInstance, field: 'mail', 'error')} ">
	<label for="mail">
		<g:message code="usuarioCreador.mail.label" default="Mail" />
		
	</label>
	<g:field type="email" name="mail" maxlength="100" value="${usuarioCreadorInstance?.mail}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: usuarioCreadorInstance, field: 'tipoUsuario', 'error')} required">
	<label for="tipoUsuario">
		<g:message code="usuarioCreador.tipoUsuario.label" default="Tipo Usuario" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="tipoUsuario" name="tipoUsuario.id" from="${ar.com.binarit.entities.TipoUsuario.list()}" optionKey="id" required="" value="${usuarioCreadorInstance?.tipoUsuario?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: usuarioCreadorInstance, field: 'nickname', 'error')} ">
	<label for="nickname">
		<g:message code="usuarioCreador.nickname.label" default="Nickname" />
		
	</label>
	<g:textField name="nickname" maxlength="100" value="${usuarioCreadorInstance?.nickname}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: usuarioCreadorInstance, field: 'mubbiasDestacadas', 'error')} ">
	<label for="mubbiasDestacadas">
		<g:message code="usuarioCreador.mubbiasDestacadas.label" default="Mubbias Destacadas" />
		
	</label>
	<g:select name="mubbiasDestacadas" from="${ar.com.binarit.entities.Mubbia.list()}" multiple="multiple" optionKey="id" size="5" value="${usuarioCreadorInstance?.mubbiasDestacadas*.id}" class="many-to-many"/>
</div>

<div class="fieldcontain ${hasErrors(bean: usuarioCreadorInstance, field: 'mubbiasFavoritas', 'error')} ">
	<label for="mubbiasFavoritas">
		<g:message code="usuarioCreador.mubbiasFavoritas.label" default="Mubbias Favoritas" />
		
	</label>
	<g:select name="mubbiasFavoritas" from="${ar.com.binarit.entities.Mubbia.list()}" multiple="multiple" optionKey="id" size="5" value="${usuarioCreadorInstance?.mubbiasFavoritas*.id}" class="many-to-many"/>
</div>

<div class="fieldcontain ${hasErrors(bean: usuarioCreadorInstance, field: 'mubbiasEnVista', 'error')} ">
	<label for="mubbiasEnVista">
		<g:message code="usuarioCreador.mubbiasEnVista.label" default="Mubbias En Vista" />
		
	</label>
	<g:select name="mubbiasEnVista" from="${ar.com.binarit.entities.Mubbia.list()}" multiple="multiple" optionKey="id" size="5" value="${usuarioCreadorInstance?.mubbiasEnVista*.id}" class="many-to-many"/>
</div>

<div class="fieldcontain ${hasErrors(bean: usuarioCreadorInstance, field: 'mubbiasCreadas', 'error')} ">
	<label for="mubbiasCreadas">
		<g:message code="usuarioCreador.mubbiasCreadas.label" default="Mubbias Creadas" />
		
	</label>
	<g:select name="mubbiasCreadas" from="${ar.com.binarit.entities.Mubbia.list()}" multiple="multiple" optionKey="id" size="5" value="${usuarioCreadorInstance?.mubbiasCreadas*.id}" class="many-to-many"/>
</div>

<div class="fieldcontain ${hasErrors(bean: usuarioCreadorInstance, field: 'imgAvatar', 'error')} ">
	<label for="imgAvatar">
		<g:message code="usuarioCreador.imgAvatar.label" default="Img Avatar" />
		
	</label>
	<g:textField name="imgAvatar" value="${usuarioCreadorInstance?.imgAvatar}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: usuarioCreadorInstance, field: 'valorRanking', 'error')} required">
	<label for="valorRanking">
		<g:message code="usuarioCreador.valorRanking.label" default="Valor Ranking" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="valorRanking" type="number" value="${usuarioCreadorInstance.valorRanking}" required=""/>
</div>

